package com.breeze.leetcode.easy;

/**
 * @author yangzh
 * @url <a href="https://leetcode.cn/problems/find-the-original-typed-string-i">3330. 找到初始输入字符串 I</a>
 * @since 2025/7/1
 */
public class T3330 {
    public static void main(String[] args) {
        T3330 resolution = new T3330();
        int result = resolution.possibleStringCount("ere");
        System.out.println(result);
    }

    public int possibleStringCount(String word) {
        int result = 1;
        for (int i = 1; i < word.length(); i++) {
            if (word.charAt(i - 1) == word.charAt(i)) {
                result++;
            }
        }
        return result;
    }
}
